package com.nvwa.boot.stater.web.environment;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * EnvironmentAutoConfig 类。
 */
@Configuration
@EnableConfigurationProperties({EnvironmentProperties.class})
public class EnvironmentAutoConfig {
    @Bean
    public EnvironmentChecker environmentChecker(EnvironmentProperties properties) {
        return new EnvironmentChecker(properties);
    }
}
